//package com.ruoyi.system.service.impl;
//
//import com.yuanxiang.treatment.param.analyzing.controller.TreatmentParamAnalyzingController;
//import lombok.NonNull;
//import org.springframework.beans.factory.support.BeanDefinitionRegistry;
//import org.springframework.beans.factory.support.RootBeanDefinition;
//import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
//import org.springframework.core.type.AnnotationMetadata;
//import org.springframework.stereotype.Service;
//
//public class ITreatmentBeanRegistrar implements ImportBeanDefinitionRegistrar {
//
//    @Override
//    public void registerBeanDefinitions(@NonNull AnnotationMetadata importingClassMetadata, @NonNull BeanDefinitionRegistry registry) {
//        Class<TreatmentParamAnalyzingController> clazz = TreatmentParamAnalyzingController.class;
//        //将他的名字注册为simpleName, 否则前面会带上一大串的包名
//        registry.registerBeanDefinition(clazz.getSimpleName(), new RootBeanDefinition(clazz));
//    }
//}